<?php
/**
 * WAVESELF FRAMEWORK
 * 
 * Waveself framework is an open source project released under New BSD license.
 * Waveself Engine Team did this in order to help you as ourselves with different
 * but still easy to use and learn approach. 
 * 
 * Please read license before you do any changes or to say, before using current software
 * read our licence which can be found under waveself framework root folder.
 * 
 * If you did not recieve copy of licence, contact us immediately and we will send you copy.
 * 
 * @category   Waveself
 * @package    Bootstrap
 * @author     Nevio Vesic <nevio.vesic@gmail.com>
 * @copyright  Waveself Framework NPO 2009-2010
 * @license    https://code.google.com/p/waveself-framework/source/browse/trunk/LICENSE   New-BSD
 * @version    0.1a
 */

/** Define Waveself Engine Path */
defined('WAVESELF_PATH')          || define('WAVESELF_PATH', realpath(dirname(__FILE__)));


/** Ensure library is on include_path */
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(WAVESELF_PATH . '/../library'),
    get_include_path(),
)));

/** Load Engine Constants */
require WAVESELF_PATH . '/../system/settings/constants.php';

/** Load Waveself_Engine_Loader **/
require_once 'Waveself/Engine/Loader.php';

/**
 * Load engine. That's pretty much it. Without much of bullshits. If you want to change
 * any settings, go and modify system/settings/waveself or project or inside of your project root
 * /projects/{project}/settings/project.php */
$engine = new Waveself_Engine();
$engine -> getBootstrap()->bootstrap();
